[VERSN2]

unlock_memory all



// ───────────────────────────────────── ■ │ Bartender Stuff │ ■ ─────────────────────────────────────

// ----------// Create Folders \\----------

create_folder absolute "scripts"
create_folder absolute "scripts\BartenderSettings"
create_folder absolute "scripts\BartenderSettings\Advanced"
create_folder absolute "scripts\BartenderSettings\Basic"

// ----------\\ Create Folders //----------




// ----------// Install Files \\----------

move_file override relative absolute ..\bartender\dinput8.dll dinput8.dll
move_file override relative absolute ..\bartender\NFSMWBartender.asi scripts\NFSMWBartender.asi

move_file override relative absolute ..\bartender\BartenderSettings\Basic\General.ini scripts\BartenderSettings\Basic\General.ini
move_file override relative absolute ..\bartender\BartenderSettings\Basic\Supports.ini scripts\BartenderSettings\Basic\Supports.ini
move_file override relative absolute ..\bartender\BartenderSettings\Basic\Cosmetic.ini scripts\BartenderSettings\Basic\Cosmetic.ini
move_file override relative absolute ..\bartender\BartenderSettings\Basic\Speedbreaker.ini scripts\BartenderSettings\Basic\Speedbreaker.ini

move_file override relative absolute ..\bartender\BartenderSettings\Advanced\CarSpawns.ini scripts\BartenderSettings\Advanced\CarSpawns.ini
move_file override relative absolute ..\bartender\BartenderSettings\Advanced\CarTables.ini scripts\BartenderSettings\Advanced\CarTables.ini
move_file override relative absolute ..\bartender\BartenderSettings\Advanced\Helicopter.ini scripts\BartenderSettings\Advanced\Helicopter.ini
move_file override relative absolute ..\bartender\BartenderSettings\Advanced\Strategies.ini scripts\BartenderSettings\Advanced\Strategies.ini
move_file override relative absolute ..\bartender\BartenderSettings\Advanced\Heat.ini scripts\BartenderSettings\Advanced\Heat.ini
move_file override relative absolute ..\bartender\BartenderSettings\Advanced\Roadblocks.ini scripts\BartenderSettings\Advanced\Roadblocks.ini

// ----------\\ Install Files //----------




// ----------// Missing Textures \\----------

add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES HEAT_X6  HEAT_X6  ..\bartender\BartenderSettings\MissingTextures\HEAT_X6.dds
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES HEAT_X7  HEAT_X7  ..\bartender\BartenderSettings\MissingTextures\HEAT_X7.dds
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES HEAT_X8  HEAT_X8  ..\bartender\BartenderSettings\MissingTextures\HEAT_X8.dds
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES HEAT_X9  HEAT_X9  ..\bartender\BartenderSettings\MissingTextures\HEAT_X9.dds
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES HEAT_X10 HEAT_X10 ..\bartender\BartenderSettings\MissingTextures\HEAT_X10.dds

// ----------\\ Missing Textures //----------




// ----------// Fix COPSUV driver \\----------

move_file override relative absolute copsuv_driver_fix\copsuv_driver_fix.bin CARS\COPSUV\GEOMETRY.BIN

// credits for this fix: made by rng_guy
// this is because the vanilla COPSUV driver uses a wrong texture

// ----------\\ Fix COPSUV driver //----------







// ───────────────────────────────────── ■ │ SpeedFixer Stuff │ ■ ─────────────────────────────────────

move_file override relative absolute ..\speedfixer\NFSMWSpeedFixer.asi scripts\NFSMWSpeedFixer.asi
move_file override relative absolute ..\speedfixer\NFSMWSpeedFixerSettings.ini scripts\NFSMWSpeedFixerSettings.ini






// ───────────────────────────────────── ■ │ OpenLA Stuff │ ■ ─────────────────────────────────────

move_file override relative absolute ..\openLA\NFSMWOpenLimitAdjuster_gcp.asi NFSMWOpenLimitAdjuster_gcp.asi
move_file override relative absolute ..\openLA\NFSMWOpenLimitAdjuster_gcp.toml NFSMWOpenLimitAdjuster_gcp.toml






// ───────────────────────────────────── ■ │ Healthbars │ ■ ─────────────────────────────────────


combobox "Yes, install healthbars" "No, don't install healthbars" "Install healthbars for cops (mod by trelbutate)?"

"Yes, install healthbars"
move_file override relative absolute healthbars.asi scripts\healthbars.asi

"No, don't install healthbars"
erase_file absolute scripts\healthbars.asi
end



// ───────────────────────────────────── ■ │ SMS Messages │ ■ ─────────────────────────────────────

combobox "Yes, install SMS messages" "No, don't install SMS messages" "Install custom ingame SMS messages?"

"Yes, install SMS messages"
append sms_messages.end

"No, don't install SMS messages"
// do nothing
end



// ───────────────────────────────────── ■ │ 15 Rhinos │ ■ ─────────────────────────────────────

combobox "No, what is wrong with you?" "YES YES YES YES" "FOR FUN: Spawn 15 rhinos at once?"

"No, what is wrong with you?"
// do nothing

"YES YES YES YES"
move_file override relative absolute 15_rhinos.ini scripts\BartenderSettings\Advanced\Strategies.ini

end






// Continue installation
append strings.end
append descriptions.end
append preset_rides.end
append addon_cars.end
